home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8543 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: nntp1.best.com!tm2
  2. From: tm2@nntp.best.com (Toshi Morita)
  3. Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  4. Subject: Re: Help for using bcopy function
  5. Followup-To: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  6. Date: 4 Mar 1996 23:39:56 GMT
  7. Organization: Best Internet Communications
  8. Message-ID: <4hfv0c$sb9@nntp1.best.com>
  9. References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se> <31372F78.167EB0E7@pia.bt.co.uk>
  10. NNTP-Posting-Host: shellx.best.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Alwyn Thomas (alwyn@pia.bt.co.uk) wrote:
  14. : Elias Martenson wrote:
  15.  
  16. : > bcopy() is not standard AFAIK. Use memcpy instead.
  17. : It's certainly standard on SunOS.
  18.  
  19. SunOS isn't a standard, bud. It's a specific implementation.
  20.  
  21. bcopy() isn't a standard C library call - it's a BSD extension.
  22.  
  23. : What the enquirer needs to do is to add the line:
  24. : extern bcopy();
  25. : at the top of every source file in which bcopy() is called.
  26. : If you are using g++ you should put:
  27. : extern "C" void bcopy(char*, char*);
  28. : instead.
  29.  
  30. No, if bcopy doesn't exist, it doesn't exist, and you have the number of 
  31. parameters wrong anyway.
  32.  
  33. This should be better:
  34.  
  35. #define bcopy(src,dest,len) memmove(dest,src,len)
  36.  
  37. : Alwyn
  38.  
  39. Toshi
  40.